#!perl
use strict;
use YAML;
use Test::More tests=>2;
my $conf = YAML::LoadFile('conf/grantsfire_local.yml'); 
(my $db = $conf->{model}{GF}[0]) =~ s/^dbi:mysql://;
is(system("mysql $db -u ".$conf->{model}{GF}[1]." --password=".$conf->{model}{GF}[2]." < script/grantsfire_schema.sql"), 0);
is(system("mysql $db -u ".$conf->{model}{GF}[1]." --password=".$conf->{model}{GF}[2]." < script/grantsfire_data.sql"), 0);
